{template 'public/header'}

{template 'public/comhead'}
<link rel="stylesheet" type="text/css" href="../addons/zh_tcwq/template/public/ygcsslist.css">
<style type="text/css">
    .navback{display: none;}
  .yg_back{margin-left: 170px;}
</style>
<ul class="nav nav-tabs">    
    <span class="ygxian"></span>
    <div class="ygdangq">当前位置:</div>
    <li class="active"><a href="javascript:history.go(-1);">返回</a></li>
    <li class="active"><a href="javascript:void(0);">会员{if $_GPC['op']=='jifen'}红包币{elseif $_GPC['op']=='consume'}消费币{/if}流水列表</a></li>
</ul>

<div class="row ygrow">
        <form action="" method="get" class="col-md-4">
                <input type="hidden" name="c" value="site" />
                <input type="hidden" name="a" value="entry" />
                <input type="hidden" name="m" value="zh_tcwq" />
                <input type="hidden" name="do" value="userjifen" />
                <input type="hidden" name="op" value="{$_GPC['op']}" />
                <input type="hidden" name="id" value="{$_GPC['id']}" />
          <div class="input-group">
                    {php echo tpl_form_field_daterange('time',$_GPC['time']);}
              <span class="input-group-btn">
                  <input type="submit" class="btn btn-default" name="submit2" value="查找"/>
                   <input type="hidden" name="token" value="{$_W['token']}"/>
              </span>
          </div><!-- /input-group -->
      </form>
</div>
<div class="main">
     
        <div class="col-md-12">
                <!-- <div class="jl">记录</div> -->
                <table class="table table-hover">
                    <thead class="jlzn">
                        <tr class="datatitle">
                            <th class="col-md-1">ID</th>
                            <th class="col-md-2">数量</th>
                            <th class="col-md-2">进/出</th>
                            <th class="col-md-2">创建时间</th>
                            <th class="col-md-2">备注详情</th>
                        </tr>
                    </thead>
                    <tbody class="neirong">
                            {loop $list $row}
                        <tr>
                            <td class="col-md-1">{$row['id']}</td>
                            <td class="col-md-2">{$row['score']}</td>
                            {if $row['type']==1}
                            <td class="col-md-2"><span class="btn btn-xs ygyouhui2">+</span></td>
                            {elseif $row['type']==2}
                            <td class="col-md-2"><span class="btn btn-xs ygshouqian2">-</span></td>
                            {/if}
                            <td class="col-md-2">{$row['cerated_time']}</td>
                            <td class="col-md-2">{$row['note']}</td>
                        </tr>
                           {/loop}
                    {if empty($list)}
                    <tr class="yg5_tr2">
                    <td colspan="4">
                          暂无信息
                      </td>
                  </tr>
                  {/if}
                    </tbody>
                </table>
            </div>
    
</div>

<div class="text-right we7-margin-top">

     {$pager}

</div>





<!-- {template 'common/footer'} -->

<script type="text/javascript">

    $(function(){
        // $("#frame-11").show();
        $("#yframe-11").addClass("wyactive");
        
        $(".allcheck").on('click',function(){
            var checked = $(this).get(0).checked;
            $("input[type=checkbox]").prop("checked",checked);
        });        

       // ———————————————批量删除———————————————
        $("#allselect").on('click',function(){
            var check = $("input[type=checkbox][class!=allcheck]:checked");
            if(check.length < 1){
                alert('请选择要删除的商家!');
                return false;
            }else if(confirm("确认要删除此商家?")){
                var id = new Array();
                check.each(function(i){
                    id[i] = $(this).val();
                });
                console.log(id)
                $.ajax({
                    type:"post",
                    url:"{$_W['siteroot']}/app/index.php?i={$_W['uniacid']}&c=entry&do=DelUser&m=zh_tcwq",
                    dataType:"text",
                    data:{id:id},
                    success:function(data){
                        console.log(data);      
                       location.reload();
                    }
                })
               
            }
        });
    })

</script>

